package cn.edu.ujn.lab3.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import cn.edu.ujn.lab3.dao.User;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User findUser(@Param("usercode") String usercode, @Param("password") String password);
    
    
    List<User> selectUserList(User user);
    
    Integer selectUserListCount(User user);
    
}